package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.HouseRemainingRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface HouseRemainingRelationRepository extends JpaRepository<HouseRemainingRelation, Long>, JpaSpecificationExecutor<HouseRemainingRelation> {
    HouseRemainingRelation findByOrgIdAndHouseId(Long orgId,String houseId);
    List<HouseRemainingRelation> findByOrgIdInAndHouseId(List<Long> orgId, String houseId);

    List<HouseRemainingRelation> findByHouseId(String houseId);
}
